package com.link.base.base.sms.service;


import com.link.base.sms.model.SendResult;
import com.link.base.base.sms.model.SmsBack;
import com.link.core.basic.service.BasicService;

import java.util.List;

/**
 * @Author: liulu
 * @Date:15:37 2018/11/5
 */
public interface SendResultService extends BasicService<SendResult> {

    /**
     * 查询当前短信下的结果
     * @Author: liulu
     * @Date:14:23 2018/11/5
     * @param  smsId
     * @return: List SendResult
     */
    public List<SendResult> queryBysmsId(Long smsId);

    /**
     * 根据sid修改短信结果
     * @Author: liulu
     * @Date:14:30 2018/11/5
     * @param  sendResult
     * @throws Exception
     */
    public void updateSmsId(SendResult sendResult) throws Exception;

    /**
     * 接收短信回复回调接口
     *
     * @author lujiang
     * @date 2019-04-04
     * @param smsBack 短信回复对象
     * @throws Exception
     */
    void smsback(SmsBack smsBack) throws Exception;

    /**
     * 查询短信记录
     *
     * @author lujiang
     * @date 2019-04-04
     * @param sendResult 短信记录对象
     * @return
     */
    List<SendResult> queryByMobileExamplePage(SendResult sendResult) throws Exception;
}
